function bool = in_map(point,map_size)
if point(1,1) >= 1 && ...
   point(1,2) >= 1 && ...
   point(1,1) <= map_size && ...
   point(1,2) <= map_size
    bool = 1;
else
    bool = 0;
end